package com.hzcc.hzccblog.common;

/**
 * @Author 早睡蛋
 * @Date 2022/7/3 22:46:41
 * @Desc:
 */
public class Constant {

    public static final String EMAIL_REX = "^(\\w+([-.][A-Za-z0-9]+)*){3,18}@\\w+([-.][A-Za-z0-9]+)*\\.\\w+([-.][A-Za-z0-9]+)*$";

    //映射地址
    public static final String IMG_URL = "http://localhost:8785";

    //头像缓存
    public static final String AVATOR_URL = "hzccblog:avator";

    //文章数量缓存
    public static final String ARTICLE_COUNT = "hzccblog:articleCount";

    //文章分页缓存
    public static final String ARTICLE_LIST = "hzccblog:articleList";

    //文章分页缓存（按标签查询分类）
    public static final String ARTICLE_TYPE_LIST = "hzccblog:articleTypeList:";

    //用户注册验证码缓存
    public static final String REGISTER_CODE = "hzccblog:register:";

    public static final String LOGIN_TOKEN = "hzccblog:loginToken:";

}
